package com.bdqn.ch03.service;

import com.bdqn.ch03.dao.UserMapper;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

@Service
public class UserServiceImp implements UserService {

    @Resource
    UserMapper userMapper;

    @Override
    public void deleteByUserId(Long id) {
        try {
            userMapper.delete(id);
        } catch (Exception e) {

        }
    }
}
